package com.woniuxy.driverschool.mapper;

import com.woniuxy.driverschool.entity.AppointLessonMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shichen
 * @create 2021-09-29-15:47
 * @description
 */
public interface StudentAppointmentMapper {
    /**
     * 学员预约

     */
    public void insertLesson(AppointLessonMessage appointLessonMessage);

    /**
     * 签到
     * @param said 主键
     * @param intime 签到时间 %Y-%m-%d %H:%i:%S
     */
    public void classStart(@Param("said") String said,@Param("intime") String intime);

    /**
     * 签退
     * @param said 主键
     * @param ontime 结束签退 %Y-%m-%d %H:%i:%S
     */
    public void classOver(@Param("said") String said,@Param("ontime") String ontime);

    /**
     * 所有的查询都在这个方法中
     *
     */
    public List<AppointLessonMessage> selectAppointLessons(AppointLessonMessage appointLessonMessage);
}
